package com.yykt.weshare.controller;

import com.yykt.weshare.util.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/sample")
public class SampleController {

    @GetMapping("/get")
    public JsonResult indexGet() {
        return JsonResult.success("hello");
    }

    @PostMapping("/post")
    public JsonResult indexPost(@RequestBody Map<String, Object> info) {
        return JsonResult.success(info);
    }
}
